#include <stdio.h>

int main(int argc, char *argv[]) {

    int n;
    scanf("%d", &n);
    double sum = 0;

    for (double i = 1; i <= n; i++)
    {
        sum += 1 / i;
    }

    printf("%.6lf", sum);

    return 0;
}